package springcloud_eureka_hystrix_consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * Hello world!
 *
 */
@EnableEurekaClient
@EnableFeignClients   		//表示启用feign进行远程调用
@EnableCircuitBreaker		//启用hystrix功能
@EnableHystrixDashboard		//启用 HystrixDashboard 断路器看板 相关配置
@SpringBootApplication
public class App{
  public static void main(String[] args) {
      SpringApplication.run(App.class, args);
      System.out.println("hystrix dashboard服务启动...");
  }
}